<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ page import="java.util.List,org.apache.commons.lang.StringUtils"%>	
<%
	String redirectURL=request.getParameter("redirectURL");
	//System.out.println("redirectURL:" + redirectURL);
	if(redirectURL!=null){
		redirectURL=StringUtils.replace(redirectURL,"|", "?");
	}else{
	    redirectURL="";
	}
	String msg="Loading ...";
	
	if(request.getParameter("formalInstance") != null){
		//searchKey值必须放在另外一个request中
		redirectURL += "?searchKey=" + request.getParameter("searchKey");
		msg = "搜索中，请稍侯...";
	}
%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<title>left</title>
	<meta http-equiv="refresh"  content="1; url=${ctx}<%=redirectURL%>">
	<%@ include file="/common/meta.jsp"%>
	<script type="text/javascript">
		$(document).ready(function(){
			//alert("dd");
			//alert('redirectURL=' + '${param.redirectURL }');
		});
		
		/*function redirect_(){
			<%
				if(redirectURL.indexOf('?')!=-1){
			%>
				location.replace('<%=redirectURL%>&location_hash='+document.location.hash);
			<%
			}else{
			%>
				location.replace('<%=redirectURL%>?location_hash='+document.location.hash);
			<%
			}
			%>		
		}*/
		
</script>
</head>
<body>
	<div style="font-size:20pt; font-weight:bold; height:30px;color: red;vertical-align:baseline;text-align: center">
		${requestScope.message}
	</div>
	<div style="font-size:11pt; font-weight:bold; height:200px;color: black;vertical-align:baseline;text-align: center">
		<img src="${ctx}/images/loading.gif">稍等片刻，页面将自动跳转。
	</div>
</body>
</html>